package com.aliang.shopping.service;

import com.aliang.shopping.model.po.Message;
import com.aliang.shopping.model.vo.chat.MessageVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author ShiBaLover
* @description 针对表【message(消息表)】的数据库操作Service
* @createDate 2024-10-28 09:35:47
*/
public interface MessageService extends IService<Message> {

    /**
     * 根据联系人id获取消息列表
     * @param contactId
     * @return
     */
    List<MessageVO> getMessageListByContactId(Long contactId);

    void removeBYUserIdAndContactId(Long userId, Long contactId);
}
